<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!doctype html>
<html lang="en">

	<head>
		<title>待审核任务</title>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
		<!-- VENDOR CSS -->
		<link rel="stylesheet" href="styles/css/jquery-ui.min.css" />
		<link rel="stylesheet" href="styles/css/bootstrap.min.css">
		<link rel="stylesheet" href="styles/css/font-awesome.min.css">
		<link rel="stylesheet" href="styles/css/style.css">
		<!-- MAIN CSS -->
		<link rel="stylesheet" href="styles/css/main.css">
		<!-- FOR DEMO PURPOSES ONLY. You should remove this in your project -->
		<link rel="stylesheet" href="styles/css/demo.css">
		<!-- GOOGLE FONTS -->
		<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700" rel="stylesheet">
		<!-- ICONS -->
		<link rel="apple-touch-icon" sizes="76x76" href="styles/images/apple-icon.png">
		<link rel="icon" type="image/png" sizes="96x96" href="styles/images/favicon.png">
	</head>

	<body>
		<!-- WRAPPER -->
		<div id="wrapper">
			<!-- NAVBAR -->
			<%@ include file="common/navbar.html"%>
			<!-- END NAVBAR -->
			<!-- LEFT SIDEBAR -->
			<%@ include file="common/sidebar.html"%>
			<!-- END LEFT SIDEBAR -->
			<!-- MAIN -->
			<div class="main">
				<!-- MAIN CONTENT -->
				<div class="main-content">
					<div class="container-fluid">
						<h3 class="page-title">项目列表</h3>

						<div class="row">
							<div class="col-md-12">
								<!-- TABLE STRIPED -->
								<div class="panel">
									<div class="panel-body">
										<table class="table table-bordered">
											<thead>
												<tr>
													<th>#</th>
													<th>项目编号</th>
													<th>项目名称</th>
													<th>立项时间</th>
													<th>结束时间</th>
													<th>项目状态</th>
													<th>操作</th>
												</tr>

											</thead>
											<tbody>
												<s:iterator value="#request.projectInfos" status="st">
													<c:set var="state" value="${proState+''}"></c:set>
													<c:choose>
														<c:when test="${state=='-1'}">
															<c:set var="state" value="未开始"></c:set>
														</c:when>
														<c:when test="${state=='0'}">
															<c:set var="state" value="进行中"></c:set>
														</c:when>
														<c:otherwise>
															<c:set var="state" value="已完成"></c:set>
														</c:otherwise>
													</c:choose>
													<tr>
														<td><s:property value="#st.index+1" /></td>
														<td>${pid}</td>
														<td>${pname}</td>
														<td><s:date name="proPlanStartTime" format="yyyy-MM-dd" /></td>
														<td><s:date name="proPlanEndTime" format="yyyy-MM-dd" /></td>
														<td>${state}</td>
														<td style="font-size: 12px;">
															<a href="projectDetail?pid=${pid}" style=" color:rgb(0,170,255);">
																<span class="glyphicon glyphicon-zoom-in"></span> 详情
															</a>
															&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
															<!--<a href="updateProject?pid=${pid}">
														<span class="glyphicon glyphicon-pencil"></span> 修改
													</a>&nbsp-->
															<a href="javascript:if(confirm('确实要删除本项目吗，删除后你将无法恢复?'))location='deleteProject?pid=${pid}'" style=" color:rgb(0,170,255);">
																<span class="glyphicon glyphicon-remove"></span> 删除
															</a>
														</td>
													</tr>
												</s:iterator>
											</tbody>
										</table>
									</div>
								</div>
								<!-- END TABLE STRIPED -->
							</div>

						</div>

					</div>
				</div>
				<!-- END MAIN CONTENT -->
			</div>
			<!-- END MAIN -->
			<div class="clearfix"></div>

		</div>
		<!-- END WRAPPER -->
		<!-- Javascript -->
		<script src="scripts/common/jquery-3.2.1.min.js"></script>
		<script src="scripts/common/bootstrap.min.js"></script>
		<script src="scripts/common/jquery.slimscroll.min.js"></script>
		<script src="scripts/common/klorofil-common.js"></script>
	</body>

</html>